#!/bin/bash

set -e

if [ ! -f master.cfg ]; then
	echo "Must be run from the master directory."
	exit 1
fi

#ECHO=echo
ECHO=

find . -mindepth 2 -type f -mtime +14 -not -path '*/public_html*' -exec $ECHO rm {} \;
find twistd.log* -mtime +14 -exec $ECHO rm {} \;
